package com.xiaoshuidi.cloud.module.finance.dal.mysql.finance;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.xiaoshuidi.cloud.framework.mybatis.core.mapper.BaseMapperX;
import com.xiaoshuidi.cloud.module.finance.controller.admin.finance.vo.reconciliation.FinanceReconciliationPageReqVO;
import com.xiaoshuidi.cloud.module.finance.dal.dataobject.finance.FinanceReconciliationLogDO;
import com.xiaoshuidi.cloud.module.finance.dal.dataobject.finance.FinanceYinlianReconciliationPair;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface FinanceReconciliationLogMapper extends BaseMapperX<FinanceReconciliationLogDO> {
    IPage<FinanceYinlianReconciliationPair> getPage(FinanceReconciliationPageReqVO reqVO,
                                                    IPage<FinanceYinlianReconciliationPair> page);

    /**
     * 本系统对账数据
     *
     * @param reqVO
     * @return
     */
    int getThisSystemCheckedCount(@Param("reqVO") FinanceReconciliationPageReqVO reqVO);

    /**
     * 非本系统对账数据
     *
     * @param reqVO
     * @return
     */
    int getNotThisSystemCheckedCount(@Param("reqVO") FinanceReconciliationPageReqVO reqVO);

    IPage<FinanceYinlianReconciliationPair> getNewPage(FinanceReconciliationPageReqVO reqVO,
                                                       IPage<FinanceYinlianReconciliationPair> page);
}
